package com.huanletao.spring.ioc;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;

/**
 * description: MyBeanFactoryPostProcessor <br>
 * date: 2022/7/1 15:00 <br>
 * author: 踏雪无痕 <br>
 * version: 1.0 <br>
 */
@MeComponent
public class MyBeanFactoryPostProcessor implements BeanFactoryPostProcessor, EnvironmentAware {

    private Environment environment;
    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
        //获取容器中所以的 definitionNames
    }

    @Override
    public void setEnvironment(Environment environment) {
        this.environment = environment;

    }
}
